<?php
/**
 * Header.php 
 * 
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">

	<title><?php semantic_title(); ?></title>
	
	<!-- Meta -->
		<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>"/>
		<?php if ( is_front_page() ) { ?>
			<meta name="keywords" content="Parsons, Design and Technology, Communication Design, DT, CDT, BFA Thesis 2010"/>
		<?php } ?>
		<!-- For Facebook Share, Digg, etc -->
		<meta name="title" content="<?php semantic_title(); ?>"/>
		<meta name="description" content="<?php echo retrieve_description(); ?>"/>	
		<link rel="image_src" href="<?php echo retrieve_thumbnail(); ?>"/>
			
	<!-- Syndication -->
		<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>"/>
		<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>"/>
		<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom 0.3" href="<?php bloginfo('atom_url'); ?>"/>
	
	<!-- Google Webmaster Tools Site Verification -->
		<meta name="google-site-verification" content="BWRwwSntQ2Uw_SMxPySQ5jJn_W69cJwFSpqz4AxsbYM" />
	
	<!-- Pingback -->
		<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"/>
	
	<!-- Icons -->
		<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/graphics/favicon.ico"/>
		
	<!-- Styles -->
		<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all"/>
	
	<!-- Scripts -->
		<?php 
			wp_enqueue_script('jquery');
			wp_head();
			include('gmapsApiKeySwitcher.php');
			include('autoCompleteJSON.php');
		?>
		
		<!-- Google Maps -->
		<script src="http://www.google.com/jsapi?key=<?=GMAPS_APIKEY?>" type="text/javascript"></script>
		
		<!--[if lt IE 8]>
		<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
		<![endif]-->
		
		<script src="<?php bloginfo('template_directory'); ?>/js/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>
		<script src="<?php bloginfo('template_directory'); ?>/js/com.cdt.namespace.js" type="text/javascript"></script>
		<script src="<?php bloginfo('template_directory'); ?>/js/com.cdt.util.js" type="text/javascript"></script>
		<script src="<?php bloginfo('template_directory'); ?>/js/com.cdt.main.js" type="text/javascript"></script>
		<script src="<?php bloginfo('template_directory'); ?>/js/com.cdt.colorRotator.js" type="text/javascript"></script>
		
		<script type="text/javascript">
			cdt.instances['autoCompleteArray'] = <?= $searchAutoComplete; ?>;
			cdt.jQ().ready(function(){
				cdt.util.log("document.event[ready]");
				cdt.jQ("#page").page();
			});
		</script>
</head>

<body class="<?php semantic_body(); ?>">
	<div id="page">
		
		<div id="head" class="xFull tier">
			<h1 class="logo graphic">
				<a href="<?php bloginfo('url'); ?>"><span><?php bloginfo('name'); ?></span></a>
				<img class="animated-logo" src="<?php bloginfo('template_url'); ?>/graphics/logo-animation.gif" alt="<?php bloginfo('name'); ?>"/>
			</h1>
			<div class="xMain column layerfix">
				<?php 
					include(TEMPLATEPATH . '/nav.php');
					get_search_form(); 
				?>
			</div>
		</div>
		
		<div id="body" class="xFull">
			